package com.bwie.controller;

import com.bwie.service.TbUserService;
import com.bwie.utils.R;
import com.bwie.vo.AdminLoginVo;
import com.bwie.vo.PageInfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * description:
 *
 * @Author zhaohaoyang
 * @Create 2025/4/24 8:23
 * @Version 1.0
 */
@RestController
@RequestMapping("/user/index")
public class IndexController {

    @Autowired
    TbUserService userService;

    /**
     * 用户登录
     * @param adminLoginVo
     * @return
     */
    @PostMapping("/adminLogin")
    public R adminLogin(@RequestBody AdminLoginVo adminLoginVo){
        return userService.adminLogin(adminLoginVo);
    }





}
